﻿<?php
class CommentForm extends CFormModel
{
	public $content;
	public $name;
	public $email;
	public $blog_url;
	public $articleId;

	public function rules()
	{
		return array(
			array('name,email,articleId','required'),
			array('email','email','message'=>'不是正确的邮箱格式'),
			array('blog_url','url','message'=>'不是正确的网址格式'),

			);
	}

	public function attributeLabels()
	{

	}

}

?>